package com.dingpeikeji.quickdeer.modules.priceup.entity;

import javax.validation.constraints.NotNull;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;

/**
 * 价格干预Entity
 * @author dingpei
 * @version 2017-03-08
 */
public class TPriceupHist extends DataEntity<TPriceupHist> {
	
	private static final long serialVersionUID = 1L;
	private Integer uphistid;		// uphistid
	private Integer upid;		// upid
	private Double preratio;		// preratio
	private Double postratio;		// postratio
	
	private String	custtype;
	
	public TPriceupHist() {
		super();
	}

	public TPriceupHist(String id){
		super(id);
	}

	@NotNull(message="uphistid不能为空")
	public Integer getUphistid() {
		return uphistid;
	}

	public void setUphistid(Integer uphistid) {
		this.uphistid = uphistid;
	}
	
	@NotNull(message="upid不能为空")
	public Integer getUpid() {
		return upid;
	}

	public void setUpid(Integer upid) {
		this.upid = upid;
	}
	
	@NotNull(message="preratio不能为空")
	public Double getPreratio() {
		return preratio;
	}

	public void setPreratio(Double preratio) {
		this.preratio = preratio;
	}
	
	@NotNull(message="postratio不能为空")
	public Double getPostratio() {
		return postratio;
	}

	public void setPostratio(Double postratio) {
		this.postratio = postratio;
	}

	public String getCusttype() {
		return custtype;
	}

	public void setCusttype(String custtype) {
		this.custtype = custtype;
	}
	
}